package com.yida.gwj.api.domain;


import com.yida.common.core.annotation.Excel;
import com.yida.common.core.web.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 业务步骤配置信息对象 common_step_config_info
 *
 * @author lqq
 * @date 2022-12-13
 */

public class GwjConfStepConfigInfo extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 步骤ID
	 */
	@NotNull(groups = Update.class, message = "请选择步骤")
	private Long configId;

	/**
	 * 名称
	 */
	@Excel(name = "名称")
	@NotBlank(groups = {Save.class, Update.class}, message = "配置名称不能为空")
	private String name;

	/**
	 * 编码名
	 */
	@Excel(name = "编码名")
	private String code;

	/**
	 * 状态（1启用，0禁用，2删除）
	 */
	@Excel(name = "状态", readConverterExp = "1=启用，0禁用，2删除")
	@NotBlank(groups = {Save.class, Update.class}, message = "配置状态不能为空")
	private String status;

	public Long getConfigId() {
		return configId;
	}

	public void setConfigId(Long configId) {
		this.configId = configId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("GwjConfStepConfigInfo{");
		sb.append("configId=").append(configId);
		sb.append(", name='").append(name).append('\'');
		sb.append(", code='").append(code).append('\'');
		sb.append(", status='").append(status).append('\'');
		sb.append('}');
		return sb.toString();
	}
}
